def test1():
    with open(file=r'./testClass.py', mode='wt', encoding='utf-8') as f1:
        f1.write('import pytest\n\n\n\n')
        f1.write('class TestM:\n\n')
        for i in range(1, 10):
            f1.write('    @pytest\n')
            f1.write(f'    def tes{i}(self, data):\n')
            f1.write('        request()\n')


if __name__ == '__main__':
    test1()
